import java.io.File;
import java.io.IOException;
import java.util.Scanner;

public class Demo5 {
    public static void main(String[] args) throws IOException {
        File file = new File("./test");
        file.createNewFile();
        boolean ok = file.isFile();
        System.out.println(ok);
        file.deleteOnExit();
        System.out.println("删除完成");
        System.out.println(file.exists());
        Scanner scanner = new Scanner(System.in);
        scanner.next();
    }
}
